package com.yuexunit.operationman.nbsy.module.BeforeAnesthesiaVisit;

import android.content.Context;
import android.content.res.Resources;

import com.yuexunit.operationman.nbsy.R;
import com.yuexunit.operationman.nbsy.module.BeforeAnesthesiaVisit.bean.BeforeAnesthesiaBean;

import java.util.ArrayList;

/**
 * Created by work-jx on 2017/8/24.
 */
public class BeforeAnesthesiaVisitContracts {
    public static final ArrayList<BeforeAnesthesiaBean.ObjectEntity.VisitItemsEntity> beforeAnesthesiaItemListEntities(Context context)
    {
        Resources res =context.getResources();
        String[] languages = res.getStringArray(R.array.beforeanesthesia);
        ArrayList<BeforeAnesthesiaBean.ObjectEntity.VisitItemsEntity> beforeAnesthesiaItemListEntities = new ArrayList<>();
        for(int i = 0; i<languages.length;i++)
        {
            BeforeAnesthesiaBean.ObjectEntity.VisitItemsEntity visitItemsEntity = new BeforeAnesthesiaBean.ObjectEntity.VisitItemsEntity();
            visitItemsEntity.setItemCode(languages[i]);
            visitItemsEntity.setItemValue("");
            visitItemsEntity.setItemName("");
            visitItemsEntity.setItemOther("");
            visitItemsEntity.setVisitId("");
            visitItemsEntity.setVisitItemId("");
            beforeAnesthesiaItemListEntities.add(visitItemsEntity);
        }
        return beforeAnesthesiaItemListEntities;
    };
}
